package cn.zyq.demo.system.pay.config;


import cn.zyq.demo.system.pay.core.client.PayClientFactory;
import cn.zyq.demo.system.pay.core.client.impl.PayClientFactoryImpl;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 支付配置类
 *
 * @author 芋道源码
 */
@Configuration
@EnableConfigurationProperties({PayProperties.class, PayAliProperties.class, PayWxProperties.class})
public class TigerPayAutoConfiguration {

    @Bean
    public PayClientFactory payClientFactory() {
        return new PayClientFactoryImpl();
    }

}
